<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$data = $_data["data"];
$arrSpGroup = $_data["SpGroup"];
$arrSites = $data["Sites_x"];
$arrSpG = array();
foreach($arrSites as $intSite){
	$intSite = (int)$intSite;
	$arrSpG[] = $intSite."=".$arrSpGroup[$intSite];
}
$data["SpGroup_x"] = implode("@", $arrSpG);

$data["Content_1_x"] = str_replace(chr(10),"",$data["Content_1_x"]);
$data["Content_1_x"] = str_replace(chr(13),"",$data["Content_1_x"]);

$data["Content_2_x"] = str_replace(chr(10),"",$data["Content_2_x"]);
$data["Content_2_x"] = str_replace(chr(13),"",$data["Content_2_x"]);

$data["Content_3_x"] = str_replace(chr(10),"",$data["Content_3_x"]);
$data["Content_3_x"] = str_replace(chr(13),"",$data["Content_3_x"]);

if($intID = InsertSQL( $data, " `bet_Marquee` ", $data_o)){

	AddMarquee_Log($_SESSION["Admin_Info"] -> Account, $intID, "0");
	if(!MakeMarquee())ErrMsgOutputHTML("Error", "", 1);

	@mysql_close($$_Conn);
	header("Location: ".basename($_SERVER["PHP_SELF"])."?op=List");
	exit();
}
ErrMsgOutputHTML("Error", "", 1);
?>